package com.yazhou.baidu.util;

import java.util.List;

/**
 * 创建人：xiaolu
 * 创建时间：2020/9/22 17:12
 * 描述：
 */
public class FaceData {

    /**
     * result : {"face_num":1,"face_list":[{"angle":{"roll":-1.58,"pitch":19.8,"yaw":-7.83},"face_token":"541a8eb5f8ae0bb57f9f684b11d0bc91","location":{"top":64.79,"left":192.24,"rotation":0,"width":226,"height":207},"face_probability":1}]}
     * log_id : 2019975453565
     * error_msg : SUCCESS
     * cached : 0
     * error_code : 0
     * timestamp : 1600764936
     */

    private ResultBean result;
    private long log_id;
    private String error_msg;
    private int cached;
    private int error_code;
    private int timestamp;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public long getLog_id() {
        return log_id;
    }

    public void setLog_id(long log_id) {
        this.log_id = log_id;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public int getCached() {
        return cached;
    }

    public void setCached(int cached) {
        this.cached = cached;
    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultBean {
        /**
         * face_num : 1
         * face_list : [{"angle":{"roll":-1.58,"pitch":19.8,"yaw":-7.83},"face_token":"541a8eb5f8ae0bb57f9f684b11d0bc91","location":{"top":64.79,"left":192.24,"rotation":0,"width":226,"height":207},"face_probability":1}]
         */

        private int face_num;
        private List<FaceListBean> face_list;

        public int getFace_num() {
            return face_num;
        }

        public void setFace_num(int face_num) {
            this.face_num = face_num;
        }

        public List<FaceListBean> getFace_list() {
            return face_list;
        }

        public void setFace_list(List<FaceListBean> face_list) {
            this.face_list = face_list;
        }

        public static class FaceListBean {
            /**
             * angle : {"roll":-1.58,"pitch":19.8,"yaw":-7.83}
             * face_token : 541a8eb5f8ae0bb57f9f684b11d0bc91
             * location : {"top":64.79,"left":192.24,"rotation":0,"width":226,"height":207}
             * face_probability : 1
             */

            private AngleBean angle;
            private String face_token;
            private LocationBean location;
            private int face_probability;

            public AngleBean getAngle() {
                return angle;
            }

            public void setAngle(AngleBean angle) {
                this.angle = angle;
            }

            public String getFace_token() {
                return face_token;
            }

            public void setFace_token(String face_token) {
                this.face_token = face_token;
            }

            public LocationBean getLocation() {
                return location;
            }

            public void setLocation(LocationBean location) {
                this.location = location;
            }

            public int getFace_probability() {
                return face_probability;
            }

            public void setFace_probability(int face_probability) {
                this.face_probability = face_probability;
            }

            public static class AngleBean {
                /**
                 * roll : -1.58
                 * pitch : 19.8
                 * yaw : -7.83
                 */

                private double roll;
                private double pitch;
                private double yaw;

                public double getRoll() {
                    return roll;
                }

                public void setRoll(double roll) {
                    this.roll = roll;
                }

                public double getPitch() {
                    return pitch;
                }

                public void setPitch(double pitch) {
                    this.pitch = pitch;
                }

                public double getYaw() {
                    return yaw;
                }

                public void setYaw(double yaw) {
                    this.yaw = yaw;
                }
            }

            public static class LocationBean {
                /**
                 * top : 64.79
                 * left : 192.24
                 * rotation : 0
                 * width : 226
                 * height : 207
                 */

                private double top;
                private double left;
                private int rotation;
                private int width;
                private int height;

                public double getTop() {
                    return top;
                }

                public void setTop(double top) {
                    this.top = top;
                }

                public double getLeft() {
                    return left;
                }

                public void setLeft(double left) {
                    this.left = left;
                }

                public int getRotation() {
                    return rotation;
                }

                public void setRotation(int rotation) {
                    this.rotation = rotation;
                }

                public int getWidth() {
                    return width;
                }

                public void setWidth(int width) {
                    this.width = width;
                }

                public int getHeight() {
                    return height;
                }

                public void setHeight(int height) {
                    this.height = height;
                }
            }
        }
    }
}
